package com.example.social.api

import com.example.social.model.ThreadModel
import com.example.social.model.UserModel

object ResultRegisterEntity {
    var data: Any? = null
    var msg: String? = null
    var code: String? = null
}

data class BaseResponse<T>(
    val code: Int,
    val msg: String,
    val data: T
)

data class RegisterModel(
    val email: String = "",
    val password: String = "",
    val nickname: String = "",
    val bio: String = "",
    val username: String = "",
    var imageurl: String = "",
    val uid: String = ""
)

data class LoginRequest(
    val email: String,
    val password: String
)


data class ThreadRequest(
    val thread: String = "",
    val image: String = "",
    val userId: String = ""
)

data class ThreadList(
    val threads: ThreadModel?,
    val users: UserModel?
)

data class UserList(
    val email: String = "",
    val nickname: String = "",
    val bio: String = "",
    val username: String = "",
    var imageurl: String? = "",
    val uid: String = ""
)

data class CommentList(
    val tid: String,
    val uid: String,
    val content: String
)